<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/customTag.tld" prefix="ct"%>

<c:import url="/inc/header.jsp" />
<c:import url="/inc/menu.jsp" />
<c:import url="/inc/content-begin.jsp" />

<div class="head">
	<div class="info">
		<h1>Creéz une opération</h1>
		<ul class="breadcrumb">
			<li class="active">Créez une nouvelle opération qui apparaitra
				en suite dans la liste des opérations.</li>
		</ul>
	</div>
</div>
<div class="content">
	<c:import url="/inc/alerts.jsp" />

	<form method="POST" action="<c:url value="/private/creeOperation"/>">

		<!--<c:if test="${ !empty erreur }">
			<div class="row-fluid">
				<div class="span12">
					<div class="alert alert-error">
						<strong>Erreur:</strong> ${erreur}
						<button type="button" class="close" data-dismiss="alert">&times;</button>
					</div>
				</div>
			</div>
		</c:if>

		<c:if test="${ !empty reussite }">
			<div class="row-fluid">
				<div class="span12">
					<div class="alert alert-success">
						<strong>Réussite:</strong> ${reussite}
						<button type="button" class="close" data-dismiss="alert">&times;</button>
					</div>
				</div>
			</div>
		</c:if>-->


		<div class="row-fluid">
			<div class="span12">
				<div class="block">
					<div class="head">
						<h2>Créer une operation</h2>
					</div>
					<div class="content np">

						<ct:input nom="Intitulé*" object="${op.libelle}" form="${form}"
							id="intitule" />

						<ct:input nom="Déscription*" object="${op.libelle}" form="${form}"
							id="description" type="textarea" />

						<ct:input nom="Adjoint délégué*" object="${op.libelle}"
							form="${form}" id="nomElu" />

						<ct:input nom="Nom bâtiment*" object="${op.libelle}"
							form="${form}" id="nomBatiment" />

						<ct:input nom="Rue*" object="${op.libelle.adresse}" form="${form}"
							id="rue" />

						<ct:input nom="Ville" object="${op.libelle.adresse}"
							form="${form}" id="ville" />

						<ct:input nom="Code postal" object="${op.libelle.adresse}"
							form="${form}" id="cp" />

						<ct:input nom="Autorisation" object="${op.libelle}" form="${form}"
							id="autorisation" type="radio"
							multipleChoice="AP,HAP,indeterminee" />

						<%-- <div class="content np">
							<div class="controls-row">
								<div class="span3">DGA demandeuse:</div>
								<div class="span9">
									<input name="nomDemandeurOperation" type="text"
										value="${op.libelle.nomDemandeurOperation}" /> <span
										class="help-inline"></span>
								</div>
							</div>
						</div>--%>

						<ct:input nom="DGA demandeuse" object="${op.libelle}"
							form="${form}" id="nomDemandeurOperation" type="select"
							multipleChoice="${listDga}" />


						<ct:input nom="Service operationnel" object="${op.libelle}"
							form="${form}" id="nomServiceExecutant" />

						<ct:input nom="Technicien référent" object="${op.libelle}"
							form="${form}" id="nomTechnicien" />

						<ct:input type="textarea" nom="Observations Operation"
							object="${op.libelle}" form="${form}" id="observationsOperation" />

						<ct:input type="textarea" nom="Commentaires du mail"
							object="${null}" form="${form}" id="infoValidateur" />

						<div class="footer">
							<div class="side fr">
							<c:if test="${canCreate}">
								<input type="submit" class="btn btn-primary"
									value="Créer l'opération" />
									</c:if>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<!--  -->

<c:import url="/inc/content-end.jsp" />
<c:import url="/inc/footer.jsp" />